package com.amokie.core;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
/*
 * 1 屏蔽预加载：extends LazyViewPager 
 * 2 禁掉外层viewpaper响应事件
 * */
public class NoScrollViewPager extends LazyViewPager {

	public NoScrollViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public NoScrollViewPager(Context context) {
		super(context);
	}
	/**不拦截事件，让事件传递到子控件*/
	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		return false;
	}
	/**自身是否响应此事件：不响应*/
	@Override
	public boolean onTouchEvent(MotionEvent ev) {
		return false;
	}
}
